package net.scratch.netty.log;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 
 * @author Sir Tom
 *
 */
public class Logger {
		
	public DateFormat sdf = new SimpleDateFormat("hh:mm:ss");
	
	public static Date date = new Date();
	
	public static void print(String message) {
		System.out.println("["+date+"]["+Thread.currentThread().getName()+"]"+message);
	}

	public static void setDate(Date date) {
		Logger.date = date;
	}

	public static Date getDate() {
		return date;
	}

}
